home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / X11 / XGraphicsExposeEvent.z / XGraphicsExposeEvent
Encoding:
Text File  |  1998-10-30  |  6.4 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXGGGGrrrraaaapppphhhhiiiiccccssssEEEExxxxppppoooosssseeeeEEEEvvvveeeennnntttt((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXGGGGrrrraaaapppphhhhiiiiccccssssEEEExxxxppppoooosssseeeeEEEEvvvveeeennnntttt((((3333XXXX11111111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XGraphicsExposeEvent, XNoExposeEvent - GraphicsExpose and
  10.           NoExpose event structures
  11.  
  12.      SSSSTTTTRRRRUUUUCCCCTTTTUUUURRRREEEESSSS
  13.           The structures for _G_r_a_p_h_i_c_s_E_x_p_o_s_e and _N_o_E_x_p_o_s_e events
  14.           contain:
  15.  
  16.           typedef struct {
  17.                int type;                /* GraphicsExpose */
  18.                unsigned long serial;    /* # of last request processed by server */
  19.                Bool send_event;         /* true if this came from a SendEvent request */
  20.                Display *display;        /* Display the event was read from */
  21.                Drawable drawable;
  22.                int x, y;
  23.                int width, height;
  24.                int count;               /* if nonzero, at least this many more */
  25.                int major_code;          /* core is CopyArea or CopyPlane */
  26.                int minor_code;          /* not defined in the core */
  27.           } XGraphicsExposeEvent;
  28.  
  29.           typedef struct {
  30.                int type;                /* NoExpose */
  31.                unsigned long serial;    /* # of last request processed by server */
  32.                Bool send_event;         /* true if this came from a SendEvent request */
  33.                Display *display;        /* Display the event was read from */
  34.                Drawable drawable;
  35.                int major_code;          /* core is CopyArea or CopyPlane */
  36.                int minor_code;          /* not defined in the core */
  37.           } XNoExposeEvent;
  38.  
  39.           When you receive these events, their structure members are
  40.           set as follows.
  41.  
  42.           The type member is set to the event type constant name that
  43.           uniquely identifies it.  For example, when the X server
  44.           reports a _G_r_a_p_h_i_c_s_E_x_p_o_s_e event to a client application, it
  45.           sends an _X_G_r_a_p_h_i_c_s_E_x_p_o_s_e_E_v_e_n_t structure with the type member
  46.           set to _G_r_a_p_h_i_c_s_E_x_p_o_s_e.  The display member is set to a
  47.           pointer to the display the event was read on.  The
  48.           send_event member is set to _T_r_u_e if the event came from a
  49.           _S_e_n_d_E_v_e_n_t protocol request.  The serial member is set from
  50.           the serial number reported in the protocol but expanded from
  51.           the 16-bit least-significant bits to a full 32-bit value.
  52.           The window member is set to the window that is most useful
  53.           to toolkit dispatchers.
  54.  
  55.           Both structures have these common members: drawable,
  56.           major_code, and minor_code.  The drawable member is set to
  57.           the drawable of the destination region on which the graphics
  58.           request was to be performed.  The major_code member is set
  59.           to the graphics request initiated by the client and can be
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 4/30/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXGGGGrrrraaaapppphhhhiiiiccccssssEEEExxxxppppoooosssseeeeEEEEvvvveeeennnntttt((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXGGGGrrrraaaapppphhhhiiiiccccssssEEEExxxxppppoooosssseeeeEEEEvvvveeeennnntttt((((3333XXXX11111111))))
  71.  
  72.  
  73.  
  74.           either _X__C_o_p_y_A_r_e_a or _X__C_o_p_y_P_l_a_n_e.  If it is _X__C_o_p_y_A_r_e_a, a
  75.           call to _X_C_o_p_y_A_r_e_a initiated the request.  If it is
  76.           _X__C_o_p_y_P_l_a_n_e, a call to _X_C_o_p_y_P_l_a_n_e initiated the request.
  77.           These constants are defined in <_X_1_1/_X_p_r_o_t_o._h>.  The
  78.           minor_code member, like the major_code member, indicates
  79.           which graphics request was initiated by the client. However,
  80.           the minor_code member is not defined by the core X protocol
  81.           and will be zero in these cases, although it may be used by
  82.           an extension.
  83.  
  84.           The _X_G_r_a_p_h_i_c_s_E_x_p_o_s_e_E_v_e_n_t structure has these additional
  85.           members: x, y, width, height, and count. The x and y members
  86.           are set to the coordinates relative to the drawable's origin
  87.           and indicate the upper-left corner of the rectangle.  The
  88.           width and height members are set to the size (extent) of the
  89.           rectangle.  The count member is set to the number of
  90.           _G_r_a_p_h_i_c_s_E_x_p_o_s_e events to follow.  If count is zero, no more
  91.           _G_r_a_p_h_i_c_s_E_x_p_o_s_e events follow for this window.  However, if
  92.           count is nonzero, at least that number of _G_r_a_p_h_i_c_s_E_x_p_o_s_e
  93.           events (and possibly more) are to follow for this window.
  94.  
  95.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  96.           XAnyEvent(3X11), XButtonEvent(3X11),
  97.           XCreateWindowEvent(3X11), XCirculateEvent(3X11),
  98.           XCirculateRequestEvent(3X11), XColormapEvent(3X11),
  99.           XConfigureEvent(3X11), XConfigureRequestEvent(3X11),
  100.           XCopyArea(3X11), XCrossingEvent(3X11),
  101.           XDestroyWindowEvent(3X11), XErrorEvent(3X11),
  102.           XExposeEvent(3X11), XFocusChangeEvent(3X11),
  103.           XGravityEvent(3X11), XKeymapEvent(3X11), XMapEvent(3X11),
  104.           XMapRequestEvent(3X11), XPropertyEvent(3X11),
  105.           XReparentEvent(3X11), XResizeRequestEvent(3X11),
  106.           XSelectionClearEvent(3X11), XSelectionEvent(3X11),
  107.           XSelectionRequestEvent(3X11), XUnmapEvent(3X11),
  108.           XVisibilityEvent(3X11)
  109.           _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 4/30/98)
  130.  
  131.  
  132.  
  133.